package servicepackage;


public class AssistantELService_Driver{
	public void drive(AssistantELService  assistantELService){
		//AssistantTeachingPlanELService
		ResultMessage ATPresult1 = assisatantELService.getPlan();
		if(ATPresult1 == ResultMessage.nonExist)System.out.println("You have not written the plan!");
		ResultMessage ATPresult2 = assistantELService.commitPlan().isFinished();
		if(!ATPresult2)System.out.println("the Plan is Empty, You are sure to commit?");
		//������
		//AssistantClassInformationELservice
		ResultMessage ACIresult1 = assistantELService.Messagecommit().isFinished();
		if(!ACIresult1)System.out.println("the Message is not finished, you are sure to commit?");
		//������
		//AssiatantInformationCheckingELService���湦��
		ResultMessage AICresult1 = assistantELService.searchStuNum(000000000);
		if(AICresult1 == ResultMessage.nonExist)System.out.println("Student not exists\n");
		ResultMessage AICresult2 = assistantELService.searchClaNum(000000000);
		if(AICresult2 == ResultMessage.nonExist)System.out.println("Class not exists\n");
		//������
		assistantELService.endAssistants();
	}
}
public class Client{
	public static void main(String[] args){
		AssistantELService assistantController = new AssistantController();
		AssistantELService_Driver driver = new AssistantELService_Driver(assistantController);		
		driver.drive(assistantController);
	}